import { getInfo } from '../api/common'
import { getPermission } from '../api/common'

export const updataTitle = ({ commit }, value) => {
    commit('CHANGE_TITLE', value.title);
    commit('CHANGE_DES', value.des);
};

export const setUser = ({ commit }, value) => {
    commit('CHANGE_USER', value);
};

export const setYunname = ({ commit }, value) => {
    commit('CHANGE_YUNNAME', value);
};

export const setRouterHome = ({ commit }, value) => {
    commit('CHANGE_ROUTER_HOME', value);
};

export const GetInfo = ({ commit },value) => {
    
    commit('CHANGE_USER', value);
           
}

export const getSideList=({commit},value) =>{
    commit('CHANGE_SIDE',value)
}

export const GetPermission = ({ commit },value) => {
    commit('CHANGE_PERMISSION',value);
}

export const GetActions = ({ commit },value) =>{
    commit('CHANGE_ACTIONS',value);
}

export const togglesilde = ({ commit }, value) => {
    commit('TOGGLE_SILDE', value);
};

//websocket
export const changesocket = ({ commit }, value) => {
    commit('CHANGE_SOCKET', value);
};

export const changeProvince = ({ commit }, value) => {
    commit('CHANGE_PROVINCE', value);
};

export const changeResponseNo = ({ commit }, value) => {
    commit('CHANGE_RESPONSENO', value);
};

export const changeCarInfo = ({ commit }, value) => {
    commit('CHANGE_CARINFO', value);
};

export const changeCarType = ({ commit }, value) => {
    commit('CHANGE_CARTYPE', value);
};

export const changeCarQuote = ({ commit }, value) => {
    commit('CHANGE_CARQUOTE', value);
};